﻿using System;
using System.Collections.Generic;
using System.Linq;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace WindowsGame2
{
    class MoverCamera:Game1
    {
         //world = Matrix.Identity;
        //view = Matrix.CreateLookAt(new Vector3(0, 0, 5), Vector3.Zero, Vector3.Up);
        Matrix world;

        public void MoveCamera(KeyboardState teclado, GameTime gametime)
        {

            float MovePerSecond = (float)gametime.ElapsedGameTime.TotalMilliseconds / 500;

            if (teclado.IsKeyDown(Keys.D))
            {
                world *= Matrix.CreateRotationY(0.01f);
            }

            if (teclado.IsKeyDown(Keys.A))
            {
                world *= Matrix.CreateRotationY(-0.01f);
            }

            if (teclado.IsKeyDown(Keys.S))
            {
                world *= Matrix.CreateRotationX(-0.01f);
            }

            if (teclado.IsKeyDown(Keys.W))
            {
                world *= Matrix.CreateRotationX(0.01f);
            }


        }

    }
}
